Repository navigation
test(app-shell): load the lazy object list at collection in the disabled-package deep-link suite - #34231
Conversation
…led-package deep-link suite The plain "Object Not Found" is drawn inside the lazy ObjectView route element; its cold load now also carries plugin-view's entry and outgrew waitFor's budget. Loaded at module scope, as the lazy-boundary rule and the dashboard route suite's precedent do. Claude-Session: https://claude.ai/code/session_01ADHkmT5bCDp1MDcReXVCop Co-authored-by: Claude <noreply@anthropic.com>
|
domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf
|
|
domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf Merge-only sync · 2026-11-16T02:05Z
|
|
domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf 席位核对Verdict: ACCEPT · head
|
Requested by Steve · project thread
Part of #33581
Clause-②: no — a test's load order; no surface added or changed
Metadata-protocol: none
维护者速读
AppContent.disabledPackageDeepLink-13052的 (b) 用例在 main 上每次都在约 1000 ms 超时,合并队列里同步过 main 的 PR 会因此被踢出。waitFor的 1 秒。断言本身只要约 40 ms。What changes
ui/packages/app-shell/src/console/__tests__/AppContent.disabledPackageDeepLink-13052.test.tsximports../../views/ObjectView(and@objectstack/lint, which that module reaches) at module scope, besideAppContent, with a comment saying why. That is ui/AGENTS.md's rule for an assertion behind aReact.lazyboundary, spelled asAppContent.dashboardRouteReads-28784.test.tsxalready spells it forDashboardView.Why
Case
(b) CONTROL: 404 RESOURCE_NOT_FOUND still draws "Object Not Found"timed out in queue build 43779205122 and on #34180's synced head (job 133021475780). Both contain571cf9082a(#34176).Measured on this box (verbose reporter, the file alone under
os-verify-lock,@object-ui/app-shell^...root deps built in both trees):571cf9082a^(44fc2fc4), 3 runsmain(aab8b318), 3 runsmain+ module-scopeimport '@object-ui/plugin-view'main+ module-scopeimport '../../views/ObjectView'(this PR), 3 runsSo the whole of (b)'s time is the cold load of the lazy route's modules. Before #34176 it was already 691 ms of a 1000 ms budget:
ObjectView's own graph, with plugin-view held byAppContent's eager import. #34176 moved plugin-view's entry graph out ofAppContent's imports and into that first lazy load. The assertion itself takes about 40 ms.Product. (a)
OBJECT_PACKAGE_DISABLEDis drawn byAppContentitself. (b)RESOURCE_NOT_FOUNDis drawn inside the lazyObjectViewroute element, and has been since #33677. In the console,preloadAppRouteChunkstarts that route chunk's import as soon asAppContentknows the route, in parallel with the route's metadata reads (objectui#12980). The plugin-view chunk is a static dependency of that chunk and is fetched with it, so the not-found state does not queue behind an extra serial load. No product change.Tests
scripts/ablation-replace.mjs):import '../../views/ObjectView';→/* ablated */reproduces the CI failure:(b)✗ at 1016 ms,Unable to find an element by: [data-testid="object-not-found"]. Restored: blob == HEAD,git diff HEADempty.Verification
dispatch-gates.mjs --commandson head8280ad42: 27 commands, every one exit 0;--ran:27 derived famil(ies) accounted for — 27 run, 0 NOT-MEASURED. Among themcheck:test-source-alias(the added@objectstack/lintimport),check:type-check-debtandpnpm --dir ui exec vitest run scripts/.🤖 Generated with Claude Code
https://claude.ai/code/session_01ADHkmT5bCDp1MDcReXVCop